package com.bluesky.jwf.component;

import com.bluesky.javawebbrowser.domain.html.tags.Img;

public class Image extends Component {
	private Img imageTag;

	@Override
	public void init(String html) {

		super.init(html);

		imageTag = (Img) loadByJwfClass("image");
		

	}

	public Integer getWidth() {

		return imageTag.getWidth();
	}

	public void setWidth(Integer width) {
		imageTag.setWidth(width);
	}

	public Integer getHeight() {
		return imageTag.getHeight();
	}

	public void setHeight(Integer height) {
		imageTag.setHeight(height);
	}

	public String getSource() {
		return imageTag.getSource();
	}

	public void setSource(String src) {
		imageTag.setSource(src);
	}

	public String getAlternate() {
		return imageTag.getAlternate();
	}

	public void setAlternate(String alt) {
		imageTag.setAlternate(alt);
	}
}
